<template>
	<view class="conboxs">
		<view class="fuzibox">
			<view class="title-s">
				*修改其他信息请联系校区客服
			</view>
			<view class="fzbtn">
				复制微信
			</view>
		</view>

		<view class="line">

		</view>
		<view class="dianpu-1">
			<view class="itembox">
				<view class="left-txt">
					店铺名称
				</view>
				<view class="right-txt">
					<input type="text" placeholder="请输入店铺名称" />
				</view>
			</view>
			<view class="itembox">
				<view class="left-txt">
					入驻校区
				</view>
				<view class="right-txt">
					{{leixng?leixing:'请选择入驻校区'}}
					<image src="/static/mai/right_icon.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
				</view>
			</view>
			<view class="itembox">
				<view class="left-txt">
					店铺类型
				</view>
				<view class="right-txt">
					{{leixng?leixing:'请选择店铺类型'}}
					<image src="/static/mai/right_icon.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
				</view>
			</view>
			<view class="itembox">
				<view class="left-txt">
					简介
				</view>
				<view class="right-txt">
					<input type="text" placeholder="请输入简介" />
				</view>
			</view>
		</view>
		<view class="line">

		</view>
		
		<view class="dianpu-2">
			<view class="itembox">
				<view class="left-txt">
					店铺地址
				</view>
				<view class="right-txt">
					<input type="text" placeholder="请输入店铺地址" />
				</view>
			</view>
			<view class="itembox">
				<view class="left-txt">
					店铺电话
				</view>
				<view class="right-txt">
					<input type="text" placeholder="请输入店铺电话" />
				</view>
			</view>
			<view class="itembox">
				<view class="left-txt">
					营业时间
				</view>
				<view class="right-txt">
					<input type="text" placeholder="请输入营业时间" />
				</view>
			</view>
		</view>
		<view class="line">
		
		</view>
		<view class="ikz-updata-box">
			
			<view class="tiles-x">
				门店LOGO
			</view>
			<image v-if="positiveImage && !files[0]" class="ikz-updata-add1" @click="addPic(2)" mode=""
				:src="positiveImage"></image>
			<image v-else-if="files[0]" class="ikz-updata-add1" @click="addPic(2)" mode="" :src="files[0]">
			</image>
			<image v-else class="ikz-updata-add" @click="addPic(2)" mode=""
				src="/static/forum/uploads1.png">
			</image>
		</view>
		
		<view class="line">
		
		</view>
		<view class="ikz-updata-box">
			
			<view class="tiles-x">
				门店照
			</view>
			<image v-if="positiveImage && !files[0]" class="ikz-updata-add1" @click="addPic(2)" mode=""
				:src="positiveImage"></image>
			<image v-else-if="files[0]" class="ikz-updata-add1" @click="addPic(2)" mode="" :src="files[0]">
			</image>
			<image v-else class="ikz-updata-add" @click="addPic(2)" mode=""
				src="/static/forum/uploads1.png">
			</image>
		</view>
		<view class="line">
		
		</view>
		<view class="ikz-updata-box">
			
			<view class="tiles-x">
				营业资质
			</view>
			<image v-if="positiveImage && !files[0]" class="ikz-updata-add1" @click="addPic(2)" mode=""
				:src="positiveImage"></image>
			<image v-else-if="files[0]" class="ikz-updata-add1" @click="addPic(2)" mode="" :src="files[0]">
			</image>
			<image v-else class="ikz-updata-add" @click="addPic(2)" mode=""
				src="/static/forum/uploads1.png">
			</image>
		</view>
		
		<view class="bottom-box">
			
		</view>
		
		<view class="bom-bb">
			<view class="baocun">
				保存
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data( ) {
			return {
				leixng: '',
				files:[]
			};
		},
		methods: {
			addPic( status ) {
			
				var that = this;
				wx.chooseImage( {
					count: 1,
					sizeType: [ 'original', 'compressed' ],
					sourceType: [ 'album', 'camera' ],
					success( res ) {
						console.log(res,'ressss');
						// tempFilePath可以作为img标签的src属性显示图片
						that.files[ 0 ] = res.tempFilePaths[ 0 ];
						that.$forceUpdate( );
						// that.$emit( 'returnFiles', that.files )
					}
				} )
			},
		},
	}
</script>

<style lang="scss" scoped>
	.conboxs {
		background-color: #f5f5f5;
	}

	.fuzibox {
		width: 750rpx;
		height: 144rpx;
		background: #FFFFFF;
		display: flex;
		align-items: center;
		padding: 0 30rpx;
		box-sizing: border-box;

		.title-s {
			width: 526rpx;
			height: 40rpx;
			font-weight: 400;
			font-size: 32rpx;
			color: #247EFF;
			text-align: left;
		}

		.fzbtn {
			width: 164rpx;
			height: 66rpx;
			background: #F5F7FB;
			border-radius: 46rpx 46rpx 46rpx 46rpx;
			border: 1rpx solid #247EFF;
			font-weight: 400;
			font-size: 28rpx;
			color: #247EFF;
			text-align: center;
			line-height: 66rpx;
		}
	}

	.line {
		width: 100%;
		height: 24rpx;
		background-color: #f5f5f5;
	}

	.dianpu-1 {
		width: 750rpx;
		height: 406rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		padding: 0 30rpx;
		box-sizing: border-box;

		.itembox {
			width: 100%;
			height: 100rpx;
			border-bottom: 1rpx solid #F8F8F8;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.left-txt {
				width: 50%;
				height: 40rpx;
				font-weight: 500;
				font-size: 28rpx;
				color: #222222;
				text-align: left;
			}

			.right-txt {
				width: 50%;
				height: 40rpx;
				font-weight: 400;
				font-size: 28rpx;
				color: #666666;
				text-align: right;
				display: flex;
				align-items: center;
				justify-content: flex-end;
			}

			&:nth-child(4) {
				border-bottom: none;
			}
		}
	}

	.dianpu-2{
		width: 750rpx;
		height: 304rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		.itembox {
			width: 100%;
			height: 100rpx;
			border-bottom: 1rpx solid #F8F8F8;
			display: flex;
			align-items: center;
			justify-content: space-between;
		
			.left-txt {
				width: 50%;
				height: 40rpx;
				font-weight: 500;
				font-size: 28rpx;
				color: #222222;
				text-align: left;
			}
		
			.right-txt {
				width: 50%;
				height: 40rpx;
				font-weight: 400;
				font-size: 28rpx;
				color: #666666;
				text-align: right;
				display: flex;
				align-items: center;
				justify-content: flex-end;
			}
		
			&:nth-child(3) {
				border-bottom: none;
			}
		}
	}
	
	.ikz-updata-box {
		width: 100%;
		height: 228rpx;
		background-color: #fff;
		padding: 22rpx 30rpx;
		box-sizing: border-box;
		
		.tiles-x{
			width: 100%;
			height: 40rpx;
			font-weight: 500;
			font-size: 28rpx;
			color: #222222;
			text-align: left;
			margin-bottom: 16rpx;
		}
		
		.ikz-updata-add1 {
			width: 124rpx;
			height: 124rpx;
		}
		
		.ikz-updata-add {
			width: 124rpx;
			height: 124rpx;
		}
	}

	.bottom-box{
		width: 100%;
		height: 240rpx;
		background-color: #f5f5f5;
	}
	
	.bom-bb{
		width: 750rpx;
		height: 176rpx;
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		position: fixed;
		bottom: 0;
		left: 0;
		
		.baocun{
			width: 690rpx;
			height: 88rpx;
			background: #247EFF;
			border-radius: 44rpx 44rpx 44rpx 44rpx;
			font-weight: 400;
			font-size: 30rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 88rpx;
			margin: 16rpx auto;
		}
	}
</style>